# Maintainer: Alexey Pavlov <alexpux@gmail.com>

_realname=Compress-Bzip2
pkgname=perl-${_realname}
pkgver=2.22
pkgrel=1
pkgdesc="Interface to Bzip2 compression library"
arch=(i686 x86_64)
license=(GPL2)
depends=('perl' 'libbz2')
groups=('perl-modules')
url="http://search.cpan.org/dist/Compress-Bzip2"
options=('!emptydirs')
source=("http://search.cpan.org/CPAN/authors/id/R/RU/RURBAN/$_realname-$pkgver.tar.gz")
md5sums=('0d01b86c3efa74e29bb975aea46b666f')

build() {
  cd "$srcdir/$_realname-$pkgver"
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd "$srcdir/$_realname-$pkgver"
  make DESTDIR="$pkgdir" install
}
